package cards;

public class OtherPlayer extends Player {
	
	public void setPlayerName(String name) {
		this.name = name;
	}
	
	public void playerAI(Deck currentDeck) {
		if((this.currentHand.getScore()<17) || (this.currentHand.getScore()==17 && this.currentHand.containsAce())) {
			this.currentHand.addCard(currentDeck.draw());
		}
	}
	
	public String toString() {
		String output ="Player: ";
		for(int i = 0; i < this.currentHand.hand.size(); i++) {
			output += "\n " + this.currentHand.hand.get(i).toString();
		}
		output += "\nWith a total score of: "+this.currentHand.getScore();
		return output;
		}

}


